package com.supermarket.manage.common.dto.member.request;

import com.supermarket.manage.common.validation.Discount;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-12 19:42
 **/
@Data
@ApiModel("SetDiscountParams:会员折扣设置数据对象")
public class SetDiscountParams implements Serializable {

    private static final long serialVersionUID = 8214162644056783432L;

    /**
     * 折扣
     */
    @ApiModelProperty(value = "折扣")
    @NotNull(message = "折扣不能为空")
    @Discount
    private BigDecimal discount;

    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    @NotBlank(message = "客户id不能为空")
    private String buyerId;
}
